import React from 'react'
import 'dplayer/dist/DPlayer.min.css'
import DPlayer from "dplayer"
class VideoCom extends React.Component{
    constructor(props){
        super(props)
        this["videoRef"]=React.createRef();
    }
    render(h){
        return (
        <div style={{width:"30%"}} ref={this.videoRef}></div>
        )
    }
    componentDidMount(){
        const dp = new DPlayer({
            container:this["videoRef"]["current"],
            video:{
                url:"https://api.dogecloud.com/player/get.mp4?vcode=5ac682e6f8231991&userId=17&ext=.mp4"
            },
            live:false,
            autoplay:false
        });
        console.warn(dp);
    }
}
export default VideoCom;